crypto/tls.halfConn.setErrorLocked (method)

34 uses

	crypto/tls (current package)
		conn.go#L189: func (hc *halfConn) setErrorLocked(err error) error {
		conn.go#L608: 		return c.in.setErrorLocked(errors.New("tls: internal error: attempted to read record with pending application data"))
		conn.go#L621: 			c.in.setErrorLocked(err)
		conn.go#L634: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, "unsupported SSLv2 handshake received"))
		conn.go#L642: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L650: 			return c.in.setErrorLocked(c.newRecordHeaderError(c.conn, "first record does not look like a TLS handshake"))
		conn.go#L656: 		return c.in.setErrorLocked(c.newRecordHeaderError(nil, msg))
		conn.go#L660: 			c.in.setErrorLocked(err)
		conn.go#L669: 		return c.in.setErrorLocked(c.sendAlert(err.(alert)))
		conn.go#L672: 		return c.in.setErrorLocked(c.sendAlert(alertRecordOverflow))
		conn.go#L677: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L687: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L692: 		return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L696: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L699: 			return c.in.setErrorLocked(io.EOF)
		conn.go#L702: 			return c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
		conn.go#L709: 			return c.in.setErrorLocked(&net.OpError{Op: "remote error", Err: alert(data[1])})
		conn.go#L711: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L716: 			return c.in.setErrorLocked(c.sendAlert(alertDecodeError))
		conn.go#L720: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L731: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L734: 			return c.in.setErrorLocked(c.sendAlert(err.(alert)))
		conn.go#L739: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L753: 			return c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L767: 		return c.in.setErrorLocked(errors.New("tls: too many ignored records"))
		conn.go#L826: 	return c.out.setErrorLocked(&net.OpError{Op: "local error", Err: err})
		conn.go#L1025: 		return nil, c.in.setErrorLocked(fmt.Errorf("tls: handshake message of length %d bytes exceeds maximum of %d bytes", n, maxHandshake))
		conn.go#L1082: 		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L1091: 		return nil, c.in.setErrorLocked(c.sendAlert(alertUnexpectedMessage))
		conn.go#L1152: 				return n, c.out.setErrorLocked(err)
		conn.go#L1159: 	return n + m, c.out.setErrorLocked(err)
		conn.go#L1222: 		return c.in.setErrorLocked(errors.New("tls: too many non-advancing records"))
		conn.go#L1239: 		return c.in.setErrorLocked(c.sendAlert(alertInternalError))
		conn.go#L1253: 			c.out.setErrorLocked(err)